package org.ibase4j.thired;

import org.ibase4j.system.model.SysUser;
import org.ibase4j.system.service.SysUserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import top.ibase4j.core.base.BaseController;

/**
 * 登录验证
 * 
 * @author douzoo
 */

@Controller
@RequestMapping(value = "main")
public class PageMainController extends BaseController<SysUser, SysUserService>
{

    @GetMapping("/welcome.html")
    public String welcome() { return UiThemeConstants.THEME + "welcome"; }

    @GetMapping("/{modelName}/{viewName}")
    public String view(@PathVariable("modelName") String modelName, @PathVariable("viewName") String viewName)
    {
        System.out.println("页面");
        return UiThemeConstants.THEME + "/" + modelName + "/" + viewName;
    }

}
